import Vue from 'vue'
import axios from 'axios'
const url = "http://localhost:9090/api/v1"
axios.defaults.baseURL = url
axios.interceptors.request.use(config => {
    config.headers.Authorization = `Bearer ${window.sessionStorage.getItem('token')}`
    return config
  })
Vue.prototype.$http = axios

export { url }